{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/xpmiki/Dropbox/esaiasson/replicationData/e16r.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}10 Sep 2016, 00:02:30
{txt}
{com}. clear 
{txt}
{com}. set more off
{txt}
{com}. use "charity field voice expert.dta"
{txt}
{com}. 
. ren diskussion t
{res}{txt}
{com}. keep if beslutsform == 0
{txt}(96 observations deleted)

{com}. 
. set seed  358395
{txt}
{com}. sem (d2 <-  t  wl p)(p <-  t  wl)   , vce(cluster klassnummer)
{res}{txt}(4 observations with missing values excluded)

Endogenous variables

{p 0 11 2}Observed:{space 2}{res}d2 p{p_end}
{txt}
Exogenous variables

{p 0 11 2}Observed:{space 2}{res}t wl{p_end}
{txt}
Fitting target model:

Iteration 0:{space 3}log pseudolikelihood = {res:-199.59676}  
Iteration 1:{space 3}log pseudolikelihood = {res:-199.59676}  

Structural equation model{col 49}Number of obs{col 67}= {res}       115
{col 1}{txt}Estimation method{col 20}= {res}ml
{col 1}{txt}Log pseudolikelihood{col 20}= {res}-199.59676

{txt}{ralign 78:(Std. Err. adjusted for {res:6} clusters in klassnummer)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d2 <-     {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2}  .143894{col 26}{space 2} .0542078{col 37}{space 1}    2.65{col 46}{space 3}0.008{col 54}{space 4} .0376487{col 67}{space 3} .2501392
{txt}{space 11}t {c |}{col 14}{res}{space 2} .0275859{col 26}{space 2} .0825198{col 37}{space 1}    0.33{col 46}{space 3}0.738{col 54}{space 4}-.1341499{col 67}{space 3} .1893218
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .1067091{col 26}{space 2} .0283745{col 37}{space 1}    3.76{col 46}{space 3}0.000{col 54}{space 4} .0510961{col 67}{space 3} .1623221
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .6074383{col 26}{space 2} .0330595{col 37}{space 1}   18.37{col 46}{space 3}0.000{col 54}{space 4}  .542643{col 67}{space 3} .6722336
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2} .1786271{col 26}{space 2}  .058146{col 37}{space 1}    3.07{col 46}{space 3}0.002{col 54}{space 4}  .064663{col 67}{space 3} .2925911
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .2726969{col 26}{space 2} .1035276{col 37}{space 1}    2.63{col 46}{space 3}0.008{col 54}{space 4} .0697866{col 67}{space 3} .4756072
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2784268{col 26}{space 2} .0759951{col 37}{space 1}    3.66{col 46}{space 3}0.000{col 54}{space 4} .1294792{col 67}{space 3} .4273744
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
    var(e.d2){c |}{col 14}{res}{space 2} .0729216{col 26}{space 2} .0158121{col 54}{space 4} .0476743{col 67}{space 3} .1115393
{txt}     var(e.p){c |}{col 14}{res}{space 2} .0940121{col 26}{space 2} .0140946{col 54}{space 4}  .070076{col 67}{space 3} .1261242
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       115{col 27}        .{col 38}-199.5968{col 49}     5{col 58} 409.1935{col 69} 422.9182
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat teffects 
{res}

{txt}Direct effects
{res}{txt}{ralign 78:(Std. Err. adjusted for {res:6} clusters in klassnummer)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d2 <-     {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2}  .143894{col 26}{space 2} .0542078{col 37}{space 1}    2.65{col 46}{space 3}0.008{col 54}{space 4} .0376487{col 67}{space 3} .2501392
{txt}{space 11}t {c |}{col 14}{res}{space 2} .0275859{col 26}{space 2} .0825198{col 37}{space 1}    0.33{col 46}{space 3}0.738{col 54}{space 4}-.1341499{col 67}{space 3} .1893218
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .1067091{col 26}{space 2} .0283745{col 37}{space 1}    3.76{col 46}{space 3}0.000{col 54}{space 4} .0510961{col 67}{space 3} .1623221
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2} .1786271{col 26}{space 2}  .058146{col 37}{space 1}    3.07{col 46}{space 3}0.002{col 54}{space 4}  .064663{col 67}{space 3} .2925911
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .2726969{col 26}{space 2} .1035276{col 37}{space 1}    2.63{col 46}{space 3}0.008{col 54}{space 4} .0697866{col 67}{space 3} .4756072
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}


Indirect effects
{res}{txt}{ralign 78:(Std. Err. adjusted for {res:6} clusters in klassnummer)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d2 <-     {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{space 11}t {c |}{col 14}{res}{space 2} .0257034{col 26}{space 2} .0129174{col 37}{space 1}    1.99{col 46}{space 3}0.047{col 54}{space 4} .0003856{col 67}{space 3} .0510211
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .0392394{col 26}{space 2} .0219908{col 37}{space 1}    1.78{col 46}{space 3}0.074{col 54}{space 4}-.0038617{col 67}{space 3} .0823406
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{space 10}wl {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}


Total effects
{res}{txt}{ralign 78:(Std. Err. adjusted for {res:6} clusters in klassnummer)}
{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d2 <-     {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2}  .143894{col 26}{space 2} .0542078{col 37}{space 1}    2.65{col 46}{space 3}0.008{col 54}{space 4} .0376487{col 67}{space 3} .2501392
{txt}{space 11}t {c |}{col 14}{res}{space 2} .0532893{col 26}{space 2} .0710104{col 37}{space 1}    0.75{col 46}{space 3}0.453{col 54}{space 4}-.0858885{col 67}{space 3} .1924671
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .1459486{col 26}{space 2} .0467463{col 37}{space 1}    3.12{col 46}{space 3}0.002{col 54}{space 4} .0543276{col 67}{space 3} .2375696
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2} .1786271{col 26}{space 2}  .058146{col 37}{space 1}    3.07{col 46}{space 3}0.002{col 54}{space 4}  .064663{col 67}{space 3} .2925911
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .2726969{col 26}{space 2} .1035276{col 37}{space 1}    2.63{col 46}{space 3}0.008{col 54}{space 4} .0697866{col 67}{space 3} .4756072
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. *** indirect and direct - winning/losing
. cap program drop indireff
{txt}
{com}. program indireff, rclass
{txt}  1{com}. sem (d2 <-  t  wl p)(p <-  t  wl)   , vce(cluster klassnummer)
{txt}  2{com}.   estat teffects
{txt}  3{com}.   mat bi = r(indirect)
{txt}  4{com}.   mat bt = r(total)
{txt}  5{com}.   return scalar indir  = el(bi,1,3)
{txt}  6{com}.   return scalar total  = el(bt,1,3)
{txt}  7{com}. end 
{txt}
{com}. 
. set seed 358395
{txt}
{com}. bootstrap r(indir) r(total), reps(1000): indireff
{txt}(running indireff on estimation sample)

Bootstrap replications ({res}1000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000
{res}
{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       115
{txt}{col 49}Replications{col 67}= {res}     1,000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indir)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}   Observed{col 26}   Bootstrap{col 54}         Norm{col 67}al-based
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_bs_1 {c |}{col 14}{res}{space 2} .0392394{col 26}{space 2} .0265533{col 37}{space 1}    1.48{col 46}{space 3}0.139{col 54}{space 4}-.0128041{col 67}{space 3}  .091283
{txt}{space 7}_bs_2 {c |}{col 14}{res}{space 2} .1459486{col 26}{space 2} .0575758{col 37}{space 1}    2.53{col 46}{space 3}0.011{col 54}{space 4} .0331022{col 67}{space 3}  .258795
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat bootstrap, percentile bc  

{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       115
{txt}{col 49}Replications{col 67}= {res}      1000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indir)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 14}{text}{c |}    Observed{col 38}    Bootstrap
{col 14}{text}{c |}       Coef.{col 27}       Bias{col 38}    Std. Err.{col 51}  [95% Conf. Interval]
{col 1}{text}{hline 13}{c +}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 1}{text}       _bs_1{col 14}{c |}{result}{space 2} .03923944{col 27}{space 2} .0019315{col 38}{space 2} .02655331{col 51}{space 2}-.0080446{col 63}{space 1} .0949659{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} -.008626{col 63}{space 1} .0935654{col 73}{text}  (BC)
{col 1}{text}       _bs_2{col 14}{c |}{result}{space 2} .14594856{col 27}{space 2} .0003296{col 38}{space 2} .05757576{col 51}{space 2} .0340287{col 63}{space 1} .2603038{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .0347241{col 63}{space 1} .2608783{col 73}{text}  (BC)
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 0}(P){col 8}percentile confidence interval
{col 0}(BC){col 8}bias-corrected confidence interval

{com}. 
. *** indirect and direct - treatment
. cap program drop indireff
{txt}
{com}. program indireff, rclass
{txt}  1{com}. sem (d2 <- wl  t  p)(p <- wl  t )    , vce(cluster klassnummer)
{txt}  2{com}.   estat teffects
{txt}  3{com}.   mat bi = r(indirect)
{txt}  4{com}.   mat bt = r(total)
{txt}  5{com}.   return scalar indirect  = el(bi,1,3)
{txt}  6{com}.   return scalar total  = el(bt,1,3)
{txt}  7{com}. end
{txt}
{com}. 
. set seed 358395
{txt}
{com}. bootstrap r(indirect) r(total), reps(1000): indireff
{txt}(running indireff on estimation sample)

Bootstrap replications ({res}1000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000
{res}
{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       115
{txt}{col 49}Replications{col 67}= {res}     1,000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indirect)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}   Observed{col 26}   Bootstrap{col 54}         Norm{col 67}al-based
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_bs_1 {c |}{col 14}{res}{space 2} .0257034{col 26}{space 2} .0194145{col 37}{space 1}    1.32{col 46}{space 3}0.186{col 54}{space 4}-.0123484{col 67}{space 3} .0637551
{txt}{space 7}_bs_2 {c |}{col 14}{res}{space 2} .0532893{col 26}{space 2} .0523444{col 37}{space 1}    1.02{col 46}{space 3}0.309{col 54}{space 4}-.0493037{col 67}{space 3} .1558823
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat bootstrap, percentile bc  

{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       115
{txt}{col 49}Replications{col 67}= {res}      1000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indirect)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 14}{text}{c |}    Observed{col 38}    Bootstrap
{col 14}{text}{c |}       Coef.{col 27}       Bias{col 38}    Std. Err.{col 51}  [95% Conf. Interval]
{col 1}{text}{hline 13}{c +}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 1}{text}       _bs_1{col 14}{c |}{result}{space 2} .02570335{col 27}{space 2} .0009029{col 38}{space 2} .01941452{col 51}{space 2}-.0053969{col 63}{space 1} .0683314{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2}  -.00313{col 63}{space 1}  .073668{col 73}{text}  (BC)
{col 1}{text}       _bs_2{col 14}{c |}{result}{space 2}  .0532893{col 27}{space 2}-.0017275{col 38}{space 2} .05234435{col 51}{space 2}-.0539151{col 63}{space 1}   .15182{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2}-.0452501{col 63}{space 1}   .15651{col 73}{text}  (BC)
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 0}(P){col 8}percentile confidence interval
{col 0}(BC){col 8}bias-corrected confidence interval

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/xpmiki/Dropbox/esaiasson/replicationData/e16r.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}10 Sep 2016, 00:04:06
{txt}{.-}
{smcl}
{txt}{sf}{ul off}